package com.jd.system.controller;

import com.jd.basic.utils.PageList;
import com.jd.system.domain.Log;
import com.jd.system.query.LogQuery;
import com.jd.system.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;


@RestController
@RequestMapping("/log")
public class LogController {
    @Autowired
    private LogService service;

    @GetMapping
    public List<Log> findAll(){
        return service.findAll();
    }




    @PostMapping
    public PageList queryByPage(@RequestBody LogQuery logQuery) {
        return service.queryByPage(logQuery);
    }




    
}
